import service from "@/utils/request";
//旅馆接口
export function getYCZSList(query) {
  return service({
    method: "get",
    url: "/qwsz/ypCanvas/getYCZSList",
    data: query
  });
}
//人像照片
export function getRxImg(query) {
  return service({
    method: "get",
    url: "/qwsz/ability/abilityCluepool/getZpBase64ByGmsfzhm",
    data: query
  });
}
//人像照片
export function tagTreeUrl(query) {
  return service({
    method: "get",
    url: "/qwsz/sys/tagTreeUrl",
    data: query
  });
}
// 保存节点树
export function saveNodeTree(query) {
  return service({
    method: "post",
    url: "/qwsz/deepThinking/saveNodeTree",
    data: query
  });
}
// 获取节点树
export function getNodeTree(query) {
  return service({
    method: "get",
    url: "/qwsz/deepThinking/getNodeTree",
    data: query
  });
}
// 获取人员信息
export function getPersonInfo(query) {
  return service({
    method: "get",
    url: "/qwsz/deepThinking/getPersonInfo",
    data: query
  });
}
// 获取列表信息
export function getTableData(query, apiUrl) {
  const url = apiUrl || "/qwsz/deepThinking/getTableData";
  return service({
    method: "get",
    url: url,
    data: query
  });
}
// 获取人像轨迹
export function getPersonTrajectory(query, apiUrl) {
  const url = apiUrl || "/qwsz/deepThinking/getPersonTrajectory";
  return service({
    method: "get",
    url: url,
    data: query
  });
}
// 通用API调用函数（支持动态URL和参数）
export function callDynamicApi(query, apiUrl, method = "get") {
  return service({
    method: method.toLowerCase(),
    url: apiUrl,
    data: query
  });
}
